﻿<%@ Page Title="ICVV2014-ChangePassWord" Language="C#" MasterPageFile="~/Person/PersonMasterPage.master" AutoEventWireup="true" CodeFile="ChangePassWord.aspx.cs" Inherits="Person_ChangePassWord" %>

<asp:Content ID="Content1" ContentPlaceHolderID="UserContent" Runat="Server">
    <table align="center" 
        style="width: 80%; border-style: solid; border-width: 1px">
        <tr>
            <td colspan="2" style="font-size: 20px; font-weight: bold" align="center">
                ChangePassWord
            </td>
        </tr>
        <tr>
            <td align="right" valign="top">
                <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="OriginalPassword">Original Password:</asp:Label>
            </td>
            <td>
                <asp:TextBox ID="OriginalPassword" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="OriginalPasswordRequired" runat="server" 
                    ControlToValidate="OriginalPassword" ErrorMessage="OriginalPassword is required”。" ToolTip="OriginalPassword is required”。" 
                    ValidationGroup="CreateUserWizard1" ForeColor="Red">*OriginalPassword is required</asp:RequiredFieldValidator>
                <br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="OriginalPassword" ErrorMessage="*The password must be between 6 and 18 characters" 
                    ForeColor="Red" ValidationExpression="^\w{6,18}$" 
                    ValidationGroup="CreateUserWizard1">*The password must be between 6 and 18 characters</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right" valign="top">
                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
            </td>
            <td>
                <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                    ControlToValidate="Password" ErrorMessage="Password is required”。" ToolTip="Password is required”。" 
                    ValidationGroup="CreateUserWizard1" ForeColor="Red">*Password is required</asp:RequiredFieldValidator>
                <br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="Password" ErrorMessage="*The password must be between 6 and 18 characters" 
                    ForeColor="Red" ValidationExpression="^\w{6,18}$" 
                    ValidationGroup="CreateUserWizard1">*The password must be between 6 and 18 characters</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="ConfirmPasswordLabel" runat="server" 
                    AssociatedControlID="ConfirmPassword">Confirm Password:</asp:Label>
            </td>
            <td>
                <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" 
                    ControlToValidate="ConfirmPassword" ErrorMessage="Confirm Password is required" 
                    ToolTip="Confirm Password is required" ValidationGroup="CreateUserWizard1" 
                    ForeColor="Red">*Confirm Password is required</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <asp:CompareValidator ID="PasswordCompare" runat="server" 
                    ControlToCompare="Password" ControlToValidate="ConfirmPassword" 
                     ErrorMessage="The passwords you entered do not match" 
                    ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <asp:Button ID="Button1" runat="server" Text="Enter" 
                    ValidationGroup="CreateUserWizard1" Width="200px" 
                    onclick="Button1_Click" />
            </td>            
        </tr>
    </table>
</asp:Content>

